﻿<%@ Page Title="Search for Work Order" Language="C#" MasterPageFile="~/MasterPage.master"
    AutoEventWireup="true" CodeFile="Search_Workorder.aspx.cs" Inherits="admin_Search_Workorder" %>

<asp:Content ID="Head" ContentPlaceHolderID="head" runat="Server">
    <link href="../styles/admin.css" rel="stylesheet" type="text/css" />
    <link href="../styles/lytebox.css" rel="stylesheet" type="text/css" media="screen" />
    <link href="../styles/jquery_themes/redmond/jquery-ui-1.8.5.custom.css" rel="stylesheet"
        type="text/css" />

    <script src="../javascripts/lytebox.js" type="text/javascript"></script>

    <script src="../javascripts/jquery-1.4.3.min.js" type="text/javascript"></script>

    <script src="../javascripts/jquery-ui-1.8.5.custom.min.js" type="text/javascript"></script>

    <script type="text/javascript">
        $(function() {
            $(".datepicker").datepicker({ dateFormat: 'dd/mm/yy' });
        });  
    </script>

</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
     <div id="top_menu">
        <div id="help_button">
            help
        </div>
                                <div id="logout">
            <asp:LoginStatus ID="LoginStatus1" runat="server" LogoutPageUrl="../Default.aspx"
                OnLoggingOut="LoginStatus1_LoggingOut" />
        </div>
    </div>
    <div id="page_title">
        ADMINISTRATION
    </div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server">
    <div id="left_content">
        <div class="menu">
            <ul>
                <li><a href="Home.aspx">Home</a></li>
                <li><a href="Mng_Client.aspx">Manage Clients</a></li>
                <li><a href="Mng_Site.aspx">Manage Sites</a></li>
                <li><a href="Mng_Machine.aspx">Manage Machines</a></li>
                <li><a href="Mng_Comp.aspx">Manage Components</a></li>
                <li><a href="Mng_Report.aspx">Manage Reports</a></li>
                <li><a href="#" class="current">Search for Work Order</a></li>
                <li><a href="Mng_FaultsRecom.aspx">Manage Faults Recommendation</a></li>
            </ul>
        </div>
    </div>
    <!-- end of left content -->
    <div id="right_content">
        <div class="content_area">
            <h2>
                Search for Work Order
            </h2>
            <div class="form_box1">
                <table>
                    <tr>
                        <td>
                            <asp:Label ID="Label1" runat="server" CssClass="label">W/O #:
                            </asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="workorderTextbox" runat="server" CssClass="fields1"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="label">
                            Select Client:
                        </td>
                        <td>
                            <asp:DropDownList ID="ClientsDropDownList" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ClientsDropDownList_SelectedIndexChanged"
                                CssClass="dropDownList">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="label">
                            Select Area:
                        </td>
                        <td>
                            <%--<asp:ScriptManager ID="ScriptManager1" runat="server">
                            </asp:ScriptManager>--%>
                            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                <ContentTemplate>
                                    <asp:DropDownList ID="AreaDropDownList" runat="server" AutoPostBack="true" OnSelectedIndexChanged="AreaDropDownList_SelectedIndexChanged"
                                        CssClass="dropDownList">
                                    </asp:DropDownList>
                                </ContentTemplate>
                                <Triggers>
                                    <asp:AsyncPostBackTrigger ControlID="ClientsDropDownList" />
                                </Triggers>
                            </asp:UpdatePanel>
                        </td>
                    </tr>
                    <tr>
                        <td class="label">
                            Select Site:
                        </td>
                        <td>
                            <asp:UpdatePanel ID="upnl" runat="server">
                                <ContentTemplate>
                                    <asp:DropDownList ID="Sites_DropDownList" runat="server" OnSelectedIndexChanged="Sites_DropDownList_SelectedIndexChanged"
                                        CssClass="dropDownList">
                                    </asp:DropDownList>
                                </ContentTemplate>
                                <Triggers>
                                    <asp:AsyncPostBackTrigger ControlID="ClientsDropDownList" />
                                    <asp:AsyncPostBackTrigger ControlID="AreaDropDownList" />
                                </Triggers>
                            </asp:UpdatePanel>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="Label2" runat="server" Text="Start Date" CssClass="label"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="startdate_textbox" class="datepicker" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="label3" runat="server" Text="End Date" CssClass="label"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="enddate_textbox" class="datepicker" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="label">
                            Status:
                        </td>
                        <td>
                            <%--<asp:CheckBox ID="statusCheckbox" Text="" runat="server" />--%>
                            <asp:DropDownList ID="status_dropdownlist" runat="server" CssClass="dropDownList">
                                <asp:ListItem Text="All" Value="2"></asp:ListItem>
                                <asp:ListItem Text="Completed" Value="1">
                                </asp:ListItem>
                                <asp:ListItem Text="Outstanding" Value="0"></asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td>
                            <asp:Button ID="searchbutton" OnClick="searchbuttonClicked" runat="server" Text="Search"
                                CssClass="buttons" />
                        </td>
                    </tr>
                </table>
                <asp:LinkButton ID="backbutton" runat="server" OnClick="backbuttonclicked" CssClass="backbtn">Return To WorkOrder List</asp:LinkButton>
            </div>
        </div>
    </div>
    <!-- end of right content -->
</asp:Content>
